package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户对象 t_b_customer
 * 
 * @author pspyy
 * @date 2022-02-24
 */
public class TBCustomer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customerName;

    /** 客户地址 */
    @Excel(name = "客户地址")
    private String customerAddress;

    /** 联系人 */
    @Excel(name = "联系人")
    private String people;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String phone;

    /** 客户类型 */
    @Excel(name = "客户类型",readConverterExp = "100=普通用户,101=代理商",combo = "普通用户,代理商")
    private String customerType;

    private Long userId;
    @Excels({
            @Excel(name = "关联用户", targetAttr = "userName", type = Excel.Type.EXPORT),
    })
    private SysUser user;
    /** 预期通知(天) */
    @Excel(name = "预期通知(天)",type = Excel.Type.EXPORT)
    private Long expectedNoticeDay;

    /** 通知间隔 */
    @Excel(name = "通知间隔",type = Excel.Type.EXPORT)
    private Long noticeInterval;



    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCustomerName(String customerName) 
    {
        this.customerName = customerName;
    }

    public String getCustomerName() 
    {
        return customerName;
    }
    public void setCustomerAddress(String customerAddress) 
    {
        this.customerAddress = customerAddress;
    }

    public String getCustomerAddress() 
    {
        return customerAddress;
    }
    public void setPeople(String people) 
    {
        this.people = people;
    }

    public String getPeople() 
    {
        return people;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public String getCustomerType() {
        return customerType;
    }

    public Long getExpectedNoticeDay() {
        return expectedNoticeDay;
    }

    public Long getNoticeInterval() {
        return noticeInterval;
    }

    public Long getUserId() {
        return userId;
    }

    public SysUser getUser() {
        return user;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("customerName", getCustomerName())
            .append("customerAddress", getCustomerAddress())
            .append("people", getPeople())
            .append("phone", getPhone())
            .append("customerType", getCustomerType())
            .append("expectedNoticeDay", getExpectedNoticeDay())
            .append("noticeInterval", getNoticeInterval())
            .append("userId", getUserId())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("user", getUser())
            .toString();
    }

    public void setCustomerType(String customerType) {
        this.customerType = customerType;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

    public void setExpectedNoticeDay(Long expectedNoticeDay) {
        this.expectedNoticeDay = expectedNoticeDay;
    }

    public void setNoticeInterval(Long noticeInterval) {
        this.noticeInterval = noticeInterval;
    }
}
